<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'showFile.jsp' starting page</title>


<LINK href="<%=basePath%>css/folder.css" type="text/css"
	rel="stylesheet">

<script type="text/javascript">
function downloadFile(){
	var url = document.getElementById("url").value;
	alert(url);
	window.location=url;
}
</script>
</head>

<body class="bodycolor" topmargin="0">
<table border="0" width="100%" cellspacing="0" cellpadding="3"
	class="small">
	<tr>
		<td class="Big"><img src="<%=basePath%>/img/file/folder_file.gif"
			width=22 align="absmiddle"><b><span class="Big1">查看文件</span></b>
		</td>
	</tr>
</table>

<table class="TableBlock" width="100%" align="center">

	<tr>
		<td class="TableHeader">文件名：</td>
		<td class="TableHeader" align="center"><b><span class="big">${file.fileName
		}</span><font color="#FF0000"></font></b></td>
	</tr>
	<tr>
		<td>备注：</td>
		<td class="TableData Content" height="250" valign="top">${file.remark
		}</td>
	</tr>
	<tr class=small>
		<td class="TableData" width="40">附件：</td>
		<td class="TableData" width="400"><span
			onmouseover="showMenu(this.id);" id="attach_24ca98f6"> <img
			src="<%=basePath%>/img/file/txt.gif" align="absmiddle"> <a
			class="attach_name" href="${file.fileURL }">${fName } <img
			src="<%=basePath%>img/file/download.gif" align="absMiddle" border="0">
		</a></span>&nbsp;(${file.fileSize }kb)<br>
		</td>
	</tr>
	<input type="hidden" id="url" value="<%=basePath%>${file.fileURL }" />
	<tr align="center" class="TableControl">
		<td colspan="2"><input type="button" value="下载文件"
			class="BigButton" onClick="downloadFile()">&nbsp;&nbsp; <input
			type="button" value="返回" class="BigButton" onClick="history.back();">
		</td>
	</tr>
</table>

</body>
</html>
